<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <style type="text/css">
        #d1{
            height:314px;
            width:314px;
            border:1px solid black;
            text-align: center;
        }
        #d1 a{
            height:100px;
            width:100px;
            text-decoration: none;
            background-color: #E06685;
            line-height: 100px;
            margin:2px;
            display: block;
            float: left;
        }
        #d1 a:hover{
            background-color: #0000FF;
        }
        #d1 .a2{
            position: relative;
            top:102px;
        }
        #d1 .a5{
            position: relative;
            top:102px;
            left:100px;
        }
        #d1 .a4{
            position: relative;
            top:100px;
        }
    </style>
</head>
<body>
<div id="d1">
    <a href="#" class="a1">链接1</a>
    <a href="#" class="a2">链接2</a>
    <a href="#" class="a3">链接3</a>
    <a href="#" class="a4">链接4</a>
    <a href="#" class="a5">链接5</a>
</div>
</body>
</html>